//
//  AboutViewController.m
//  海角音乐
//
//  Created by dllo on 15/8/21.
//  Copyright (c) 2015年 杨元石. All rights reserved.
//

#import "AboutViewController.h"

@interface AboutViewController ()

@end

@implementation AboutViewController

- (void)dealloc
{
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];    
    
    CGFloat title_width = SCREEN_WIDTH*0.533333; // 200
    CGFloat title_height = SCREEN_WIDTH*0.08; // 30    
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.TitleView = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, title_width, title_height)];
    self.TitleView.textColor = [UIColor whiteColor];
    self.TitleView.textAlignment = NSTextAlignmentCenter;
    self.TitleView.text = @"关于海角";
    self.navigationItem.titleView = self.TitleView;
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"iconfont-fanhui.png"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStyleDone target:self action:@selector(LeftBack)];
    [self creatSubView];
    
    // Do any additional setup after loading the view.
}

- (void)creatSubView
{
    UIImageView *Backimage = [[UIImageView alloc] initWithFrame:CGRectMake(0,  64, SCREEN_WIDTH, SCREEN_HEIGHT/3)];
    Backimage.image = [UIImage imageNamed:@"背景4.jpg"];
    
    [self.view addSubview:Backimage];
    
    
}

- (void)LeftBack
{
    
    [self.navigationController popToRootViewControllerAnimated:YES];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
